#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2017-12-22 11:42:18
# @Author  : yangxinpeng (yxpeng25877@gmail.com)
# @Link    : ${link}
# @Version : $Id$
# 判断串包含



str_a="welcom"
str_b="w"
if str_b in str_a:
	print("sub str")
else:
	print("no sub str")

# 定义函数判断
def is_sub_str(str,substr):
	"""判断串包含
	:param 
	:param
	:iretrue :False| True
	"""
	if substr in str:
		return True
	else:
		return False
a=is_sub_str(str_b,str_a)
print(a)
